package su.jet.common.irc.domain;

import java.io.Serializable;

@SuppressWarnings("serial")
public class Message implements Serializable{
	
	private String text;
	private User sender;
	private User receiver;
	private boolean isDelivered;
	
	public Message(String text, User sender, User receiver) {
		this.text = text;
		this.sender = sender;
		this.receiver = receiver;
		this.isDelivered = false;
	}
	public String getText() {
		return text;
	}
	public User getSender() {
		return sender;
	}
	public User getReceiver() {
		return receiver;
	}
	public boolean getIsDelivered() {
		return isDelivered;
	}
	public void setIsDelivered() {
		this.isDelivered = true;
	}
}	
